widget: force adjustment method is one size is FILL
authorBenjamin Otte <otte@redhat.com>
Fri, 19 Nov 2021 23:46:08 +0000 (00:46 +0100)
committerBenjamin Otte <otte@redhat.com>
Sat, 20 Nov 2021 05:04:10 +0000 (06:04 +0100)
commit50e089349744f3244b5fba1823eb80f92f4d2dcd
treeeee2ca8fdd5d044b6a3a2885080297465afe8614
parent7459d430eb5a8cd94462b0a1ad068e89384294f9
widget: force adjustment method is one size is FILL

If halign=fill, force adjustment to height-for-width.
If valign=fill, force adjustment to width-for-height.
Otherwise look at request mode.

This way we don't try to adapt the filled dimension and only adjust
the one that is not set to fill.
gtk/gtkwidget.c
testsuite/reftests/wrap-margin-align-critical.ref.ui